<%@ page language="java" pageEncoding="utf-8" import="java.util.*"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${forum.forumName }--主题列表</title>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/header.jsp"%>
</head>
<body class="zh_CN">
<table width="90%" border="0" align="center">
	<tr>
		<td>
		<table cellspacing="0" cellpadding="10" width="100%" align="center"
			border="0">
			<tr>
				<td class="bodyline" valign="top">
				<table cellspacing="2" cellpadding="2" width="100%" align="center">
					<tr>
						<td><span class="mainmenu"> <a id="backtosite"
							class="mainmenu" href="${ctx}"> 首页</a>&gt;&gt;${forum.forumName}</span></td>
					</tr>
				</table>
				<table class="forumline" cellspacing="1" cellpadding="4"
					width="100%" border="0" id="forumList">
					<tr>
						<th  class="thtop" nowrap="nowrap" align="center" colspan="2">主题</th>
						<th class="thcornerr" nowrap="nowrap">发帖人</th>
						<th class="thtop" nowrap="nowrap" align="center" width="50">回帖</th>
						<th class="thtop" nowrap="nowrap" align="center" width="50">查看</th>
						<th class="thcornerr" nowrap="nowrap">最新回复</th>
					</tr>
					<c:forEach var="topic" items="${topicsPagination.items}"
						varStatus="status">
						<s:url id="topicDisplayUrl" action='forumadmin' includeParams="none">
							<s:param name="method:displayTopic"></s:param>
							<s:param name="topicId">${topic.id}</s:param>
						</s:url>
						<tr class="bg_small_yellow">
							<td class="row3" width="4%">${topicsPagination.startIndex+status.count
							}</td>
							<td class="row3" width="100%"><img alt="[Folder]"
								src="${ctx }/images/folder_big.gif" /> <span class="topictitle">
							<a href="${topicDisplayUrl }">${topic.subject }</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
								href="forumadmin.action?method:deleteTopic=&topicId=${topic.id}">删除</a></span></td>
							<td class="row3" width="110">${topic.create.username }</td>
							<td class="row3" width="110"></td>
							<td class="row3" width="110"></td>
							<td class="row3" width="110"></td>
						</tr>
					</c:forEach>
					<tr align="center">
						<td class="catbottom" valign="middle" align="right" colspan="6"
							height="28">
						<table cellspacing="0" cellpadding="0" border="0">
							<tr>
								<td align="center"><span class="gensmall">&nbsp;</span></td>
							</tr>
						</table>
						</td>
					</tr>
				</table>
				<table width="100%" border="0">
					<c:set var="pagination" value="${topicsPagination}" />
					<c:set var="condition" value="forumId=${forum.id}" />
					<c:set var="method_param" value="listTopics" />
					<%@ include file="/common/paginationForum.jsp"%>
				</table>
				<table cellspacing="0" cellpadding="10" width="100%" align="center"
					border="0">
					<tr>
						<td align="left"><a
							href="${ctx }/forum/forumadmin.action?method:postTopicForm&forumId=${forum.id}"
							rel="nofollow" class="icon_new_topic"> 发表主题</a></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td><%@ include file="/common/footer.jsp"%></td>
	</tr>
</table>
</body>
</html>